<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:rg="http://www.ruijie.com.cn/faces/ui"
	template="/layout/dialogLayout.xhtml">

 	<ui:param name="param_panelTitle" value="添加产品 类别信息"/>
 	<ui:param name="param_panelWidth" value="450px"/> 
	
	<ui:define name="content">
		<a:form>
			<rg:titlePanel type="writable" needButton="true" headerTitle="产品类别">
				<rg:fieldSet  >
					<rg:inputText id="typeName" required="true" label="产品类型" value="#{productTypeAction.productType.typeName}" />
					<rg:selectOne id="question" label="健康申请表" value="#{productTypeAction.productType.question}" itemsProvider="#{questionProvider}" converter="#{questionConverter}" enableEmpty="true"  />
					<rg:inputArea id="description" label="类型描述" value="#{productTypeAction.productType.description}" />
				</rg:fieldSet>	

				<ui:define name="panelButton">
					<a:commandButton styleClass="button" value="#{messages.btn_complete}" 
						onclick="UI.instance.showMask()" oncomplete="UI.instance.reRender('reRenderProductTable');"
						actionListener="#{productTypeAction.addProductType()}" reRender="globalMessage" />
						
					<a:commandButton styleClass="button" value="取消" onclick="UI.instance.closeDialog()"/>
	            </ui:define>
			</rg:titlePanel>
		</a:form>	
	</ui:define>
</ui:composition>
